From: Debian Science Maintainers Date: Thu, 5 Feb 2026 19:55:34 +0000 (+0100) Subject: matplotlib_nullptr_s390x X-Git-Tag: archive/raspbian/9.5.2+dfsg3-6+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=bec5f640e40e29b6cc207266514da275ff05605d;p=vtk9.git matplotlib_nullptr_s390x =================================================================== Gbp-Pq: Name matplotlib_nullptr_s390x.patch --- diff --git a/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx b/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx index d8261ac2..dcff6556 100644 --- a/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx +++ b/Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx @@ -1029,6 +1029,12 @@ bool vtkMatplotlibMathTextUtilities::RenderOneCell(vtkImageData* image, int bbox { unsigned char* ptr = static_cast(image->GetScalarPointer(col, row, 0)); + if (ptr == nullptr) + { + vtkErrorMacro("image returned null ScalarPointer."); + return false; + } + // Background, do not load python data if (row > pythonRowStart || col < pythonColStart || row <= pythonRowEnd || col >= pythonColEnd)